<?php echo $this->render('header.phtml'); ?>
<?php echo $this->render('menu.phtml'); ?>
<div id="content">
    <div id="icon" class="icon32"><br/></div><h2>日志列表</h2>
    <table class="list-table">
        <thead class="ui-state-default">
            <tr>
                <th width="5%">ID</th>
                <th width="55%">标题</th>
                <th width="10%">点击量</th>
                <th width="10%">评论数</th>
                <th width="20%">编辑</th>
            </tr>
        </thead>
        <tbody>
            <?php if (null !== $this->articleList) : ?>
                <?php foreach ($this->articleList as $articleSet) : ?>
            <tr>
                <td><?php echo $this->escape($articleSet->article->articleId) ?></td>
                <td><?php echo $this->escape($articleSet->article->articleTitle) ?></td>
                <td><?php echo $this->escape($articleSet->article->clickCount) ?></td>
                <td><?php echo $this->escape($articleSet->article->commentCount) ?></td>
                <td>
                    <a href="/backend/edit/article/id/<?php echo $this->escape($articleSet->article->articleId) ?>">编辑</a> |
                    <a href="javascript:if(confirm('你确实要删除【<?php echo $this->escape($articleSet->article->articleTitle) ?>】这篇文章吗?'))location='/backend/del/article/id/<?php echo $this->escape($articleSet->article->articleId) ?>'">删除</a>
                </td>
            </tr>
                <?php endforeach; ?>
            <?php endif; ?>
        </tbody>
        <tfoot class="ui-state-default">
            <tr>
                <th width="5%">ID</th>
                <th width="55%">标题</th>
                <th width="10%">点击量</th>
                <th width="10%">评论数</th>
                <th width="20%">编辑</th>
            </tr>
        </tfoot>
    </table>
    <?php if (null !== $this->articleList) echo $this->paginationControl($this->articleList,'Elastic','pagebar.phtml'); ?>
</div>
<?php echo $this->render('footer.phtml'); ?>